function arrsum(arr){
    let sum = 0;
    for(let i = 0; i < arr.length ;i++){
        sum+=arr[i]
    }
    return sum;
}
console.log(arrsum(1,2,3,4,5));